﻿@model IEnumerable<OurWedding1.Models.Guest>
@using OurWedding1

<table>
    <thead>
        <tr>
            <th style="padding:0 5px 0 0px;">
                @Html.DisplayNameFor(model => model.Name)
            </th>
            <th style="padding:0 5px 0 0px;">
                @Html.DisplayNameFor(model => model.GuestFunction)
            </th>
            <th>Hotel?
            </th>
            <th>Rez?
            </th>
            <th>potw?
            </th>
            <th style="padding:0 5px 0 10px; width:100%" >
                @Html.DisplayNameFor(model => model.Comment)
            </th>
            <th></th>
        </tr>
    </thead>

    @foreach (var item in Model)
    {
        <tr>
            <td style="padding:0 5px 0 0px;">
                @Html.DisplayFor(modelItem => item.Name)
            </td>
            <td style="padding:0 5px 0 0px;">
                @Html.DisplayFor(modelItem => item.GuestFunction.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.isHotelNeeded)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.isNotIncluded)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.isConfirmed)
            </td>
            <td style="padding:0 5px 0 10px;width:100%">
                @Html.DisplayFor(modelItem => item.Comment)
            </td>
            <td style="text-align: right">
                @Html.ActionLink(@Resources.Edit, "EditByGuestGroup", new { id = item.GuestId }, new { @class = "editIconLink" })
                @Html.ActionLink(@Resources.Delete, "DeleteAjax", new { id = item.GuestId }, new { @class = "deleteIconLink" })
            </td>
        </tr>
    }

</table>
